package com.darwin.darwinDll.core
{
	/**
	 * 请求加载资源时 关键索引信息
	 * @author vanCopper
	 * 
	 */	
	public class ResKey
	{
		private var _key:String;
		private var _subKey:String;
		private var _data:*;
		private var _other:Object;
		public var type:String;
		/**
		 *  
		 * @param key 如果是取SWF 中的资源 key必须是资源的name 
		 * @param subKey 如果是取SWF 中的资源 subKey必须是要取资源的导出类名 留空则是去整个资源
		 * @param type 该素材类别
		 */		
		public function ResKey(key:String,subKey:String = "",type:String = DllItem.TYPE_SWF,other:Object = null)
		{
			this.key = key;
			this.subKey = subKey;
			this.type = type;
			this.other = other;
		}

		/**
		 * key 多对应文件名 
		 */
		public function get key():String
		{
			return _key;
		}

		/**
		 * @private
		 */
		public function set key(value:String):void
		{
			_key = value;
		}

		/**
		 * 对应swf,dar等文件类名 
		 */
		public function get subKey():String
		{
			return _subKey;
		}

		/**
		 * @private
		 */
		public function set subKey(value:String):void
		{
			_subKey = value;
		}

		public function get data():*
		{
			return _data;
		}

		public function set data(value:*):void
		{
			_data = value;
		}

		/**
		 * 其他标记数据 
		 */
		public function get other():Object
		{
			return _other;
		}

		/**
		 * @private
		 */
		public function set other(value:Object):void
		{
			_other = value;
		}


	}
}